package com.mx.project.dao;

import com.mx.project.pojo.Comment;
import com.mx.project.vo.CommentInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Integer cid);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer cid);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<CommentInfo> selectCommentInfoByPid(@Param("pid") Integer pid);
}